package edu.predatorwars.shared.models;


public class Player 
{
	private Creature creature;
	private PlayerConnectionInfo commInfo;
	private PlayerStatus status;
	
	private float[] color = {0.5f,0.0f,0.0f};
	
	public Player(PlayerConnectionInfo commInfo)
	{
		this.commInfo = commInfo;
		this.status = PlayerStatus.JOINING;
	}
	
	public Player(PlayerConnectionInfo commInfo, float[] color) {
		this.color = color;
		this.commInfo = commInfo;
	}
	
	public PlayerConnectionInfo getCommInfo()
	{
		return commInfo;
	}
	
	public void setCreature(Creature creature)
	{
		this.creature = creature;
	}
	
	public Creature getCreature()
	{
		return creature;
	}
	
	public PlayerStatus getPlayerStatus() {
		return status;
	}
	
	public void setPlayerStatus(PlayerStatus status) {
		this.status = status;
	}
	
	
	public void setColor(float r,float g, float b) {
		color[0] = r;
		color[1] = g;
		color[2] = b;
	}
	
	public float[] getColor() {
		return color;
	}
}
